package com.example.client_demo.common;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @Description:
 * @Author: mayc
 * @Date: 2019/03/14 13:52
 */
@Configuration
public class AOuthConfig {

    // 客户端ID
    @Value("${aouth2.client.id}")
    private String clientId;
    // 客户端验证秘钥
    @Value("${aouth2.client.security}")
    private String clientSecurity;
    // 客户端获取令牌的url，在申请时就填写的回调地址
    @Value("${aouth2.redirect.url}")
    private String redirectUrl;
    // 客户端获取token的url地址
    @Value("${aouth2.access.token.url}")
    private String accessTokenUrl;
    // 客户端获取到令牌后根据此令牌拉取人员信息的url（此url服务商提供）
    @Value("${aouth2.user.info.url}")
    private String userInfoUrl;

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getClientSecurity() {
        return clientSecurity;
    }

    public void setClientSecurity(String clientSecurity) {
        this.clientSecurity = clientSecurity;
    }

    public String getRedirectUrl() {
        return redirectUrl;
    }

    public void setRedirectUrl(String redirectUrl) {
        this.redirectUrl = redirectUrl;
    }

    public String getAccessTokenUrl() {
        return accessTokenUrl;
    }

    public void setAccessTokenUrl(String accessTokenUrl) {
        this.accessTokenUrl = accessTokenUrl;
    }

    public String getUserInfoUrl() {
        return userInfoUrl;
    }

    public void setUserInfoUrl(String userInfoUrl) {
        this.userInfoUrl = userInfoUrl;
    }
}
